<template>
    <div>页面2</div>
    <button @click="toBack">返回</button>
</template>
<script setup lang="ts">
import { useRouter } from 'vue-router'
let router = useRouter()
let toBack = () => {
    router.back()
}
</script>